package com.ruoyi.project.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同信息对象 contract
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
public class Contract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同id */
    private Long contractId;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** oa流水号 */
    @Excel(name = "oa流水号")
    private String oaCode;

    /** 费用申请单id */
    @Excel(name = "费用申请单id")
    private Long appId;

    /** 费用申请单对象 */
    @Excels({
            @Excel(name = "费用申请单名称", targetAttr = "appName", type = Excel.Type.EXPORT)
    })
    private ExpenseApp expenseApp;

    /** 合同金额 */
    @Excel(name = "合同金额")
    private BigDecimal contractAmount;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 合同状态 */
    @Excel(name = "合同状态")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public ExpenseApp getExpenseApp()
    {
        return expenseApp;
    }

    public void setExpenseApp(ExpenseApp expenseApp)
    {
        this.expenseApp = expenseApp;
    }

    /** 合同报销信息 */
    private List<ExpenseClaim> expenseClaimList;

    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }
    public void setOaCode(String oaCode) 
    {
        this.oaCode = oaCode;
    }

    public String getOaCode() 
    {
        return oaCode;
    }
    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setContractAmount(BigDecimal contractAmount) 
    {
        this.contractAmount = contractAmount;
    }

    public BigDecimal getContractAmount() 
    {
        return contractAmount;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    public List<ExpenseClaim> getExpenseClaimList()
    {
        return expenseClaimList;
    }

    public void setExpenseClaimList(List<ExpenseClaim> expenseClaimList)
    {
        this.expenseClaimList = expenseClaimList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contractId", getContractId())
            .append("contractName", getContractName())
            .append("oaCode", getOaCode())
            .append("appId", getAppId())
            .append("contractAmount", getContractAmount())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("status", getStatus())
            .append("notes", getNotes())
            .append("expenseClaimList", getExpenseClaimList())
            .toString();
    }
}
